import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EForce
    
    export  class EForce
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EForce
        {
            return new EForce(arg1);
        }

        public static __read(arg1: SerializeStream): EForce
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 57) 
            {
                throw new MarshalException();
            }
            return EForce.convert(loc1);
        }

        public static /* const */_EForceRed: int=1;

        public static /* const */_EForceYellow: int=2;

        public static /* const */_EForceBlue: int=3;

        public static /* const */_EForcePetArenaChallenge: int=11;

        public static /* const */_EForcePetArenaChallenged: int=12;

        public static /* const */_EForceOne: int=21;

        public static /* const */_EForceTwo: int=22;

        public static /* const */_EForceThree: int=23;

        public static /* const */_EForceFour: int=24;

        public static /* const */_EForceRobCityOne: int=31;

        public static /* const */_EForceRobCityTwo: int=32;

        public static /* const */_EForceRobCityThree: int=33;

        public static /* const */_EForceRobCityFour: int=34;

        public static /* const */_EForceRobCityFive: int=35;

        public static /* const */_EForceRobCitySix: int=36;

        public static /* const */_EForceBeanSpirit: int=40;

        public static /* const */_EForceChaosFightOne: int=51;

        public static /* const */_EForceChaosFightTwo: int=52;

        public static /* const */_EForceChaosFightThree: int=53;

        public static /* const */_EForceChaosFightFour: int=54;

        public static /* const */_EForceChaosFightFive: int=55;

        public static /* const */_EForceChaosFightSix: int=56;

        public /* var */__value: int;
    }
